<!--OSCam;1066264146;1.20-unstable_svn;7271;WITH_LB-->
##TPLHEADER##
##TPLMENU##
##TPLCONFIGMENU##

<div class="filterform">
   <form action="config.html" method="get">
   <input name="part" type="hidden" value="loadbalancer">
            <input type="submit" name="button" value="Load Stats" ##BTNDISABLED## class="btn btn-primary">
            <input type="submit" name="button" value="Save Stats" ##BTNDISABLED## class="btn btn-success">
            <input type="submit" name="button" value="Clear Stats" ##BTNDISABLED## class="btn btn-danger">
            <input type="submit" name="button" value="Clear Timeouts" ##BTNDISABLED## class="btn btn-danger">
            <input type="submit" name="button" value="Clear Not Founds" ##BTNDISABLED## class="btn btn-danger">
   </form>
</div>

##TPLMESSAGE##

   <form action="config.html" method="get">
		<input name="part" type="hidden" value="loadbalancer">
		<input name="action" type="hidden" value="execute">

		<table class="table config">
         <thead>
			   <tr><th colspan="2">Edit Loadbalancer Config</th></tr>
         </thead>

			<tr><td>##TPLHELPPREFIX##conf#lb_mode##TPLHELPSUFFIX##Loadbalance Mode:</a></td>
				<td>
					<select name="lb_mode">
						<option value="0" ##LBMODE0##>0 - Loadbalancer disabled (send to all readers)</option>
						<option value="1" ##LBMODE1##>1 - Fastest reader first</option>
						<option value="2" ##LBMODE2##>2 - Oldest reader first</option>
						<option value="3" ##LBMODE3##>3 - Lowest usagelevel</option>
						<option value="10" ##LBMODE10##>10 - Log statistics only</option>
					</select>
				</td>
			</tr>

			<tr><td>##TPLHELPPREFIX##conf#lb_save##TPLHELPSUFFIX##Loadbalance save every:</a></td><td><input name="lb_save" type="text" size="5" maxlength="5" value="##LBSAVE##">(ECMs)</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_savepath##TPLHELPSUFFIX##Statistics save path:</a></td><td><input name="lb_savepath" type="text" size="63" maxlength="128" value="##LBSAVEPATH##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_nbest_readers##TPLHELPSUFFIX##Number of best readers:</a></td><td><input name="lb_nbest_readers" type="text" size="5" maxlength="5" value="##LBNBESTREADERS##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_nbest_percaid##TPLHELPSUFFIX##Number of best readers per caid:</a></td><td><input name="lb_nbest_percaid" type="text" size="63" maxlength="320" value="##LBNBESTPERCAID##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_nfb_readers##TPLHELPSUFFIX##Number of fallback readers:</a></td><td><input name="lb_nfb_readers" type="text" size="5" maxlength="5" value="##LBNFBREADERS##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_max_readers##TPLHELPSUFFIX##Max Readers:</a></td><td><input name="lb_max_readers" type="text" size="5" maxlength="5" value="##LBMAXREADERS##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_min_ecmcount##TPLHELPSUFFIX##Min ECM count:</a></td><td><input name="lb_min_ecmcount" type="text" size="5" maxlength="5" value="##LBMINECMCOUNT##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_max_ecmcount##TPLHELPSUFFIX##Max ECM count:</a></td><td><input name="lb_max_ecmcount" type="text" size="5" maxlength="5" value="##LBMAXECEMCOUNT##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_retrylimit##TPLHELPSUFFIX##Retry limit:</a></td><td><input name="lb_retrylimit" type="text" size="5" maxlength="5" value="##LBRETRYLIMIT##">(miliseconds)</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_retrylimits##TPLHELPSUFFIX##Special retry limit per caid:</a></td><td><input name="lb_retrylimits" type="text" size="63" maxlength="320" value="##LBRETRYLIMITS##"></td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_reopen_seconds##TPLHELPSUFFIX##Time to reopen:</a></td><td><input name="lb_reopen_seconds" type="text" size="5" maxlength="5" value="##LBREOPENSECONDS##">(seconds)</td></tr>
			<tr><td>##TPLHELPPREFIX##conf#lb_stat_cleanup##TPLHELPSUFFIX##Hours to cleanup older than:</a></td><td><input name="lb_stat_cleanup" type="text" size="5" maxlength="5" value="##LBCLEANUP##"></td></tr>

			<tr>
            <td>##TPLHELPPREFIX##conf#lb_reopen_mode##TPLHELPSUFFIX##Reopen mode:</a></td>
            <td>
               <select name="lb_reopen_mode">
                  <option value="0">0 - reopen after time</option>
                  <option value="1" ##REOPENMODE##>1 - reopen fast</option>
               </select>
            </td>
         </tr>

			<tr><td>##TPLHELPPREFIX##conf#lb_noproviderforcaid##TPLHELPSUFFIX##Ignore provider for:</a></td><td><input name="lb_noproviderforcaid" type="text" size="63" maxlength="160" value="##LBNOPROVIDERFORCAID##"></td></tr>

			<tr><td>##TPLHELPPREFIX##conf#lb_auto_betatunnel##TPLHELPSUFFIX##Auto Betatunnel:</a></td><td><select name="lb_auto_betatunnel"><option value="0">NO</option><option value="1" ##LBAUTOBETATUNNEL##>YES</option></select></td></tr>
         <TR><TD>##TPLHELPPREFIX##conf#lb_auto_betatunnel_mode##TPLHELPSUFFIX##Auto Betatunnel Mode:</A></TD><TD><SELECT NAME="lb_auto_betatunnel_mode"><OPTION VALUE="0">0 - 18XX->17X2 (only)</OPTION><OPTION VALUE="1" ##LBAUTOBETATUNNELMODE1##>1 - 18XX->17X2 & 17X2->18XX (1833/1801)</OPTION><OPTION VALUE="2" ##LBAUTOBETATUNNELMODE2##>2 - 18XX->17X2 & 17X2->18XX (1833/1834)</OPTION><OPTION VALUE="3" ##LBAUTOBETATUNNELMODE3##>3 - 18XX->17X2 & 17X2->18XX (1833/1835)</OPTION><OPTION VALUE="4" ##LBAUTOBETATUNNELMODE4##>4 - 17X2->18XX (1833/1801 only)</OPTION><OPTION VALUE="5" ##LBAUTOBETATUNNELMODE5##>5 - 17X2->18XX (1833/1834 only)</OPTION><OPTION VALUE="6" ##LBAUTOBETATUNNELMODE6##>6 - 17X2->18XX (1833/1835 only)</OPTION></SELECT></TD></TR>

			<tr><td>##TPLHELPPREFIX##conf#lb_auto_betatunnel_prefer_beta##TPLHELPSUFFIX##Prefer Beta over Nagra:</a></td><td><input name="lb_auto_betatunnel_prefer_beta" type="text" size="5" maxlength="5" value="##LBPREFERBETA##">(%)</td></tr>

         <TR><TD>##TPLHELPPREFIX##conf#lb_auto_timeout##TPLHELPSUFFIX##Auto timeout:</A></TD><TD><SELECT NAME="lb_auto_timeout"><OPTION VALUE="0">NO</OPTION><OPTION VALUE="1" ##LBAUTOTIMEOUT##>YES</OPTION></SELECT></TD></TR>
         <TR><TD>##TPLHELPPREFIX##conf#lb_auto_timeout_p##TPLHELPSUFFIX##Auto timeout percent:</A></TD><TD><input name="lb_auto_timeout_p" type="text" size="5" maxlength="5" value="##LBAUTOTIMEOUTP##">%</TD></TR>
         <TR><TD>##TPLHELPPREFIX##conf#lb_auto_timeout_t##TPLHELPSUFFIX##Auto timeout time:</A></TD><TD><input name="lb_auto_timeout_t" type="text" size="5" maxlength="5" value="##LBAUTOTIMEOUTT##">ms</TD></TR>

			<tr><td colspan="2" class="last-row"><input type="submit" value="Save" ##BTNDISABLED## class="btn btn-success btn-large"></form></td></tr>
		</table>

##TPLFOOTER##
